package net.csdn.business.discuss.common.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName SendDiscussCommentAuditDTO
 * @Description 讨论评论审核对象DTO
 * @Author zhangyl
 * @Date 2023/7/18 10:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendDiscussSectionAuditDTO extends BaseAuditDTO
{

    private static final long serialVersionUID = 1L;
    /** id */
    @NotBlank(message = "id不能为空")
    private String id;
    /** discuss主键 */
    @NotBlank(message = "sectionName不能为空")
    private String sectionName;
    /** 创建人 */
    @NotBlank(message = "content不能为空")
    private String createdBy;

    @NotNull(message = "createdDate不能为空")
    private Date createdDate;

    /**
     * action:1:新增；2:更新;3:删除
     */
    @NotNull(message = "action不能为空")
    @Range(min = 1, max = 3, message = "action不合法")
    private Integer action;

}
